#ifndef MEASUREMENTINTERFACE_H
#define MEASUREMENTINTERFACE_H

#include <QObject>
#include "Measuration/WorkpieceFactory.h"

class MeasurementInterface : public QObject
{
    Q_OBJECT
public:
    explicit MeasurementInterface(QObject *parent = nullptr);
    void MesurementCalRequest(int workpieceId,
                              int pictureId);

signals:
    /***********************************************************************
     *  @function MesurementCalResponse
     *  @brief
     *  @param
     *  @return   measureInfo<量测项名字， 量测结果值>
     *            error: <位置，异常信息>
    ***********************************************************************/
    void MesurementCalResponse(int workpieceId,
                               int PictureId);

public:
    shared_ptr<Workpiece>            m_pWorkpiece;
    WorkpieceFactory                 m_workpieceFactory;
};

#endif // MEASUREMENTINTERFACE_H
